public class Demo02 {
    public static void main(String[] args) {
        printStart01(6);
    }

    /**
     * 带参输出矩阵星号
     *
     * @param n 矩阵长宽
     */
    public static void printStart01(int n) {
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++) {
                System.out.print("* ");
            }
            System.out.println();
        }
        System.out.println(Demo02.class);
    }

    /**
     * 不带参输出矩阵星号
     */
    public static void printStart() {
        System.out.println("* * * * * * * * * * * *");
        System.out.println("* * * * * * * * * * * *");
        System.out.println("* * * * * * * * * * * *");
        System.out.println("* * * * * * * * * * * *");
        System.out.println("* * * * * * * * * * * *");
        System.out.println("* * * * * * * * * * * *");
        System.out.println("* * * * * * * * * * * *");
        System.out.println("* * * * * * * * * * * *");
        System.out.println("* * * * * * * * * * * *");
    }
}
